package com.idp.web.test.service;

import com.idp.web.test.entity.DeliverGoods;
import java.util.List;

import com.idp.common.persistence.Page;

/**
 * 
 * 1231232service接口
 * 
 * <pre>
 * 	历史记录：
 * 	2017-06-02 Amber
 * 	新建文件
 * </pre>
 * 
 * @author
 * 
 *         <pre>
 * SD
 * 	Amber
 * PG
 *	Amber
 * UT
 *
 * MA
 *         </pre>
 * 
 * @version $Rev$
 *
 *          <p/>
 *          $Id$
 *
 */
public interface DeliverGoodsService {

	/**
	 * 
	 * <pre>
	 * 	2017-06-02 Amber
	 * 	分页查询
	 * </pre>
	 * 
	 * @param deliverGoods
	 * @param page
	 * @return
	 */
	public Page<DeliverGoods> findByPage(DeliverGoods deliverGoods, Page<DeliverGoods> page);

	/**
	 * 
	 * <pre>
	 * 	2017-06-02 Amber
	 * 	查询
	 * </pre>
	 * 
	 * @param deliverGoods
	 * @return
	 */
	public List<DeliverGoods> findBySearch(DeliverGoods deliverGoods);

	/**
	 * 
	 * <pre>
	 * 	2017-06-02 Amber
	 * 	通过ID查询
	 * </pre>
	 * 
	 * @param DeliverGoods
	 * @return
	 */
	public DeliverGoods getById(Integer id);

	/**
	 * 
	 * <pre>
	 * 	2017-06-02 Amber
	 * 	新增
	 * </pre>
	 * 
	 * @param deliverGoods
	 */
	public void add(DeliverGoods deliverGoods);

	/**
	 * 
	 * <pre>
	 * 	2017-06-02 Amber
	 * 	修改
	 * </pre>
	 * 
	 * @param deliverGoods
	 */
	public void update(DeliverGoods deliverGoods);

	/**
	 * 
	 * <pre>
	 * 	2017-06-02 Amber
	 * 	删除
	 * </pre>
	 * 
	 * @param id
	 */
	public void delete(Integer id);

	public Integer getIdByCode(String code);
	
	
}
